package com.cmc.cloud.cmclink.doc.vo.sovo.sosplitcombinedetailvo;

import com.cmc.cloud.cmclink.doc.vo.sovo.sosplitcombinevo.SoSplitCombineDetailRespVO;
import com.cmc.cloud.cmclink.doc.vo.sovo.sovo.SoDetailRespVO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.ToString;

import java.util.List;

/**
 * 订舱拆分合并记录表  Response VO
 *
 * @author codegen
 */
@Schema(description = "管理后台 - 订舱拆分合并记录表   Response VO")
@Data
@ToString(callSuper = true)
public class SoSplitCombineAllRespVO {
    @Schema(description = "订舱拆分合并申请")
    private SoSplitCombineRespVO soSplitCombine;
    @Schema(description = "订舱拆分合并申请详细")
    private List<SoSplitCombineDetailRespVO> soSplitCombineDetailList;
    @Schema(description = "split订舱记录详细旧数据")
    private SoDetailRespVO splitOldSoDetail;
    @Schema(description = "split订舱记录详细新列表")
    private List<SoDetailRespVO> splitNewSoDetailList;
    @Schema(description = "combine订舱记录详细旧数据列表")
    private List<SoDetailRespVO> combineOldSoDetail;
    @Schema(description = "combine订舱记录详细新数据")
    private SoDetailRespVO combineNewSoDetail;
    @Schema(description = "操作类型 拆分 split 合并 combine")
    private String operationType;

    public String getOperationType() {
        if (soSplitCombine != null) {
            return soSplitCombine.getOperationType();
        }
        return null;
    }
}
